export class Renderer {
  canvas: HTMLCanvasElement;
  device: GPUDevice;
  context: GPUCanvasContext;

  constructor(canvas: HTMLCanvasElement, device: GPUDevice) {
    this.canvas = canvas;
    this.device = device;
    this.context = canvas.getContext('webgpu') as GPUCanvasContext;
  }

  dispose() {
    // window.cancelAnimationFrame(this.requestId);

    this.device.destroy();
  }
}
